#ifndef SWP_SIM_SPLIT_GRAPHIC_ITEM_H
#define SWP_SIM_SPLIT_GRAPHIC_ITEM_H

#include "isimitem.h"
#include "swpsplitgraphicitem.h"

namespace swp
{

class SwpSimSplitGraphicItem : public SwpSplitGraphicItem, public ISimItem
{
public:
    SwpSimSplitGraphicItem(QGraphicsItem* parent = 0);
    SwpSimSplitGraphicItem(SwpSplitGraphicItem* from,
        QGraphicsItem* parent = 0);
    ~SwpSimSplitGraphicItem();

    // IEditorItem
    bool supportsConnection(
            const core::ConnectionData& connection) const;

    int type() const;

    IEditorItem* copy() const;

    // ISimItem
    bool isInSimPath() const;
    void setInSimPath(bool in = true);
    QUuid originId() const;

private:
    bool m_isInSimPath;
    QUuid m_originId;
};

} // namespace swp

#endif
